package com.lxt;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 打包war [4] 增加war的启动类
 *
 * @author kevin.lv
 * @date 2022/8/16 21:17
 */

public class WarStarterApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        //指向Application这个springBoot启动类
        return builder.sources(Application.class);
    }
}
